package view;

import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.TextField;
import javafx.scene.layout.StackPane;
import javafx.scene.text.Font;
import javafx.scene.text.FontPosture;
import javafx.scene.text.FontWeight;

public class TopPane extends StackPane{
	private TextField textField = null;
	public TopPane() {
		super();
		this.setStyle("-fx-background-color:#d3d7d4");
		this.setPadding(new Insets(4, 4, 2, 4));
		this.textField = new TextField("0");
		this.textField.setStyle("-fx-background-color:white");
		this.textField.setAlignment(Pos.CENTER_RIGHT);
		this.textField.setEditable(false);
		this.textField.setFocusTraversable(false);
		this.textField.setPrefSize(266, 65);
		this.textField.setFont(Font.font("Times New Roman", FontWeight.BOLD, FontPosture.REGULAR, 27));
		this.getChildren().add(textField);
	}
	
	public TextField getTextField() {
		return textField;
	}
	
	public void setTextField(TextField textField) {
		this.textField = textField;
	}
}
